<?php

namespace app\models;

/**
 * This is the model class for table "cti_zuoxi".
 */
class CtiZuoxi extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     *  * This is the model class for table "cti_zuoxi".
     *
     */
    public static function tableName()
    {
        return 'cti_zuoxi';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'create_at', 'update_at','max_no_answer','wrap_up_time','reject_delay_time','busy_delay_time','level','position'], 'integer'],
            [['name','number','type','status'], 'string', 'max' => 30],
            [['id'], 'unique'],
            [['update_at'],'default','value'=>time()],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
        ];
    }
}
